package net.sk.china.city.domain.vo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ArExchangeItemVO implements Serializable{
    /** 主键 */
    private Long id;

    /** 兑换记录表id */
    private Long exchangeId;

    /** 规格包括尺码颜色 */
    private SpecificationsVO specification;

    /** 商品id */
    private Long productId;

    /** 商品名称 */
    private String productName;

    /** 商品编码 */
    private String proCode;

    /** 商品数量 */
    private Integer productNumber;

    /** 时间段 */
    private String timeSlot;

    /** 时间区间 */
    private String timeInterval;

    /** 单价 */
    private BigDecimal monovalent;

    /** 总价 */
    private BigDecimal totalPrice;

    public void setSpecification(String color,String size,String specifications){
        specification.setColor(color);
        specification.setSize(size);
        specification.setSpecifications(specifications);
    }

    public ArExchangeItemVO(){
        specification = new SpecificationsVO();
    }

    public String getColor(){
        return specification.getColor();
    }

    public String getSize(){
        return specification.getSize();
    }

    public String getSpecifications(){
        return specification.getSpecifications();
    }
}

